<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});
</script>
</head>
<body>
<div class="box-positon">
	<div class="rpos"><@s.m "global.position"/>:  <@s.m "cmsMember.function"/> - <@s.m "global.edit"/></div>
	<form class="ropt">
		<input type="button" value="<@s.m "global.backToList"/>" onclick="history.back();" class="return-button"/>
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<#include "/common/image_upload.html"/>
<@p.form id="jvForm" action="o_update.do" labelWidth="12">
<@p.text colspan="1" width="50" label="shopInfo.shopName" name="shopName" value=shopInfo.shopName required="true" class="required" maxlength="100"/>
<@p.select colspan="1" width="50" label="商城类型" name="shopType" value=shopInfo.shopType list=listShopType listKey="dicCode" listValue="dicName" required="true"/><@p.tr/>
<@p.text colspan="1" width="50" label="系统欢迎信息" name="topMsg" value=shopInfo.topMsg  maxlength="100" help="建议组数控制在40字以内"/>
<@p.text colspan="1" width="50" label="详情页地址头" name="detailPageURL" value=shopInfo.detailPageURL  maxlength="100" /><@p.tr/>

<@p.text colspan="1" width="50" label="linkman" name="name" value=shopInfo.name required="true" class="required" maxlength="100"/>
<@p.text colspan="1" width="50" label="店铺微信uid" name="shopWeixinId" value=shopInfo.shopWeixinId required="false" maxlength="100"/><@p.tr/>

<@p.td colspan="1" width="50" label="url" >${url!}</@p.td>
<@p.td colspan="1" width="50" label="token" >${token!}</@p.td><@p.tr/>

<@p.textarea value=shopInfo.address cols="30" rows="5" maxlength="255"  label="linkaddress" name="address" colspan="1" width="50"/>
<@p.textarea value=shopInfo.copyright cols="30" rows="5" maxlength="255"  label="copyright" name="copyright" colspan="1" width="50"/><@p.tr/>
<@p.text colspan="1" width="50" label="linkmobile" name="mobile" value=shopInfo.mobile required="true" class="required" maxlength="100"/>
<@p.text colspan="1" width="50" label="serviceTel" name="serviceTel" value=shopInfo.serviceTel required="true" class="required" maxlength="100"/><@p.tr/>
<@p.text width="50" colspan="1" label="cmsUser.email" name="email" value=shopInfo.email size="30" class="email"/>
<@p.text width="50" colspan="1" label="默认市场价比率" name="defaultPriceRate" value=shopInfo.defaultPriceRate/><@p.tr/>

<!-- 上传图片 -->
<@p.td label="首页头图" colspan="1" width="50" noHeight="true">
<@p.text id="uploadImgPath1" name="headerImg" value=shopInfo.headerImg style="width:220px"/> <input type="button" value="<@s.m "imageupload.preview"/>" onclick="previewImg(1);" class="preview-button"/><br/>
<span id="ufc1" style="position:relative">
<input type='text' id='uploadFileText1' size="14"/>  
<input class="browse" type='button' value='<@s.m "global.browse"/>'/>
<input onchange="$('#uploadFileText1').val(this.value)" size="14" type="file" id="uploadFile1" class="file-button"/>
</span>
<label><input type="checkbox" onclick="$('#mark1').val(this.checked);"/><@s.m "imageupload.mark"/></label>
<input type="hidden" id="mark1" value="false"/> <input type="button" value="<@s.m "imageupload.upload"/>" onclick="upload(1);" class="upload-button"/><br/>
<@s.m "global.width"/>: <input type="text" id="zoomWidth1" value="" size="5"/>
<@s.m "global.height"/>: <input type="text" id="zoomHeight1" value="" size="5"/> 
<input type="button" value="<@s.m "imageupload.cut"/>" onclick="imgCut(1);" class="cut-button"/> 
</@p.td>
<@p.td colspan="1" width="50">
<img id="preImg1" alt="<@s.m "imageupload.preview"/>" style="width:100px;height:70px;background-color:#CCCCCC;border:1px solid #333"/>
</@p.td><@p.tr/>

<@p.td label="网站背景图" colspan="1" width="50" noHeight="true">
<@p.text id="uploadImgPath2" name="webBgImg" value=shopInfo.webBgImg style="width:220px"/> <input type="button" value="<@s.m "imageupload.preview"/>" onclick="previewImg(2);" class="preview-button"/><br/>
<span id="ufc2" style="position:relative">
<input type='text' id='uploadFileText2' size="14"/>  
<input class="browse" type='button' value='<@s.m "global.browse"/>'/>
<input onchange="$('#uploadFileText2').val(this.value)" size="14" type="file" id="uploadFile2" class="file-button"/>
</span>
<label><input type="checkbox" onclick="$('#mark2').val(this.checked);"/><@s.m "imageupload.mark"/></label>
<input type="hidden" id="mark2" value="false"/> <input type="button" value="<@s.m "imageupload.upload"/>" onclick="upload(2);" class="upload-button"/><br/>
<@s.m "global.width"/>: <input type="text" id="zoomWidth2" value="" size="5"/>
<@s.m "global.height"/>: <input type="text" id="zoomHeight2" value="" size="5"/> 
<input type="button" value="<@s.m "imageupload.cut"/>" onclick="imgCut(2);" class="cut-button"/> 
</@p.td>
<@p.td colspan="1" width="50">
<img id="preImg2" alt="<@s.m "imageupload.preview"/>" style="width:100px;height:70px;background-color:#CCCCCC;border:1px solid #333"/>
</@p.td><@p.tr/>
<!-- end -->

<@p.editor value=shopInfo.introduction colspan="2" label="店铺简介" name="introduction"/><@p.tr/>


<@p.td colspan="2">
	<@p.hidden name="id" value=shopInfo.id/>
	<@p.submit code="global.submit"/>&nbsp; <@p.reset code="global.reset"/>
</@p.td>
</@p.form>
</div>
</body>
</html>